﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;

namespace FaceDetectionDemo.Models
{
    /// <summary>
    /// 单个人脸识别结果实体类
    /// </summary>
    public class ResultSingleModel
    {
        /// <summary>
        /// 人脸Pid
        /// </summary>
        public int Pid { get; set; }

        /// <summary>
        /// 年龄
        /// </summary>
        public int Age { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public string Gender { get; set; }

        /// <summary>
        /// 人脸位置信息
        /// </summary>
        public Rectangle FaceRectangle { get; set; }
        /// <summary>
        /// 人脸置信度
        /// </summary>
        public float FaceScore { get; set; }
    }

    /// <summary>
    /// 人脸识别结果实体类
    /// </summary>
    public class ResultModel
    {
        /// <summary>
        /// 原始图片
        /// </summary>
        public Image OriginalImg { get; set; }
        /// <summary>
        /// 处理过的图片
        /// </summary>
        public Image FinishImg { get; set; }
        /// <summary>
        /// 单个人脸识别结果实体类对像列表
        /// </summary>
        public List<ResultSingleModel> ResultSingleModelList { get; set; }

        /// <summary>
        /// 处理成功与否
        /// </summary>
        public bool Success { get; set; } = false;
        /// <summary>
        /// 处理结果消息
        /// </summary>
        public string Msg { get; set; } = "";

    }

}
